import sys
import time

from PyQt5.QtWidgets import QApplication,QWidget

app = QApplication(sys.argv)
w = QWidget()
w.setWindowTitle('Hello World!')
w.show()
print(f"当前时间：{time.strftime('%Y-%m-%d %H:%M:%S')}")
app.exec_()